﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CommonHelper.Enum;

namespace CommonHelper.Model
{
    public class TemplateMessage
    {
        /// <summary>
        /// 通知消息模板ID
        /// </summary>
        public static string NoticeTemplateId = "eB4x2JoLHniskWthcqcdc4DdbYoaQr7ys9pt4t0zGeI";
        /// <summary>
        /// 领取通知消息模板(优惠券领取成功通知)
        /// </summary>
        /// <param name="first">通知标题</param>
        /// <param name="keyword1">券名称</param>
        /// <param name="keyword2">来源商家</param>
        /// <param name="keyword3">过期时间</param>
        /// <param name="keyword4">使用说明</param>
        /// <returns></returns>
        public static object NoticeTemplate(string first, string keyword1, string keyword2, string keyword3, string keyword4)
        {
            var data = new
            {
                first = new TemplateDataItem(first, "#3990eb"),
                keyword1 = new TemplateDataItem(keyword1, "#feb91a"),
                keyword2 = new TemplateDataItem(keyword2, "#feb91a"),
                keyword3 = new TemplateDataItem(keyword3, "#feb91a"),
                keyword4 = new TemplateDataItem(keyword4, "#000000"),
                remark = new TemplateDataItem("点击“详情”查看优惠券，欢迎再次使用!", "#fe5627")
            };
            return data;
        }
    }
}
